package ar.edu.itba.it.pdc.app.client;

import java.net.Socket;
import java.util.HashMap;
import java.util.Map;


public class ConnectionManager {
	
	private Map<Client,Socket> connections;
	
	public ConnectionManager(){
		this.connections = new HashMap<Client,Socket>();
	}

	public void addConnection(Client client, Socket endpoint) {
		this.connections.put(client, endpoint);
		
	}

	public void removeConnection(Client client) {
		this.connections.remove(client);
	}
	
	public Socket getEndpointFor(Client client){
		return this.connections.get(client);
	}

}
